﻿using SlimDX;
using WiimoteLib;

namespace GamepadDriver
{
	public static class VectorExtensions
	{
		public static Vector2 InvertTheYAxis(this Vector2 @this)
		{
			return new Vector2(@this.X, -@this.Y);
		}

		public static Point3 ToPoint(this Vector3 @this)
		{
			return new Point3() { X = (int)@this.X, Y = (int)@this.Y, Z = (int)@this.Z };
		}

		public static Vector3 ToVector(this Point3 @this)
		{
			return new Vector3() { X = @this.X, Y = @this.Y, Z = @this.Z };
		}
	}
}